package com.bjc.principle.proxy.demo2;

/**
 * @program: DesignPattern
 * @description:
 * @author: bjc
 * @create: 2020-12-28 20:02
 */
public class Client {

    public static void main(String[] args) {
        UserServiceImpl userService = new UserServiceImpl();
        userService.add();

        UserServiceProxy proxy = new UserServiceProxy();
        proxy.setUserService(userService);
        proxy.add();
    }
}
